package cn.usian.controller;


import cn.usian.common.R;
import cn.usian.entity.OrderDto;
import cn.usian.service.OrderService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.time.LocalDateTime;

@RestController
@RequestMapping("/order")
public class OrdersController {

    @Resource
    private OrderService orderService;

    @GetMapping("/page")
    public R<Page<OrderDto>> page(Integer page, Integer pageSize, Long number, String beginTime, String endTime){
        return orderService.page(page,pageSize,number,beginTime,endTime);
    }

}
